<template>
  <div class="cy-table">
    <el-table
      :data="tableData"
      border
      height="300px"
      label-width
      :highlight-current-row="true"
      :span-method="spanMethod"
    >
      <template v-for="item of propList" :key="item.label">
        <el-table-column v-bind="item" show-overflow-tooltip></el-table-column>
      </template>
    </el-table>
  </div>
</template>

<script lang="ts">
import { defineComponent } from 'vue'

export default defineComponent({
  props: {
    tableData: {
      type: Array,
      default: () => []
    },
    propList: {
      type: Array,
      default: () => []
    }
  },
  setup() {
    const spanMethod = (args: any) => {
      // const { row, column, rowIndex, columnIndex } = args
      // tableColHasContent()
    }
    return {
      spanMethod
    }
  }
})
</script>

<style scoped></style>
